Jared
I was reading all your posts,
Might I suggest you get on cnczone , post your encoder problems there.
There are a lot of savvy and helpful guys there.
Given that turning on your shop heater causes more issues
I would double check that you have a good ground back to mains.
Carl
--- In
DynoMotion@yahoogroups.com, Jared Tesmer <judrandom@...> wrote:
>
>
>
>
>
>
> Back again Tom
>  Ok I connected the sheilds to there respective grds. That caused no problems. When I connected the a and b signals to ground through a 1/4 watt 220 ohm resister ( closest to 200 ohm they had) the encoders would not work at all. I have been told by someone else to connect the encoder sheilding to earth ground star
point? He also said to connect the a and b signals to +5v through the resisters? Do you see a problem with this theory? As of now is there nowhere else to go? Is there something that can be connected in line to the signal that can clean them up and keep them straight? Not your fault but this is driving me mad!!! Last is there some way to connect the encoders A, A-, B, and B- to k-motion and would that fix the problem? Thanks again.
> JaredÂ
>
> --- On Sat, 12/18/10, Tom Kerekes <tk@...> wrote:
>
>
> From: Tom Kerekes <tk@...>
> Subject: Re: [DynoMotion] Still strange things happening!
> To:
DynoMotion@yahoogroups.com> Date: Saturday, December 18, 2010, 9:20 PM
>
>
> Â
>
>
>
>
>
> Hi Jared,
> Â
> >> Â I connected the machine to earth ground
> Â
> good
> Â
> >> Then I connected the motor shielding to the machine frame next to each motor mount
> Â
> good
> Â
> >> The encoders no longer float at idle
> Â
> good
> Â
> >> Exactly how do I connect the encoder shields to dc ground?
> Â
> At the end of the encoder cable near KMotion JP3, connect the shield to GND (ie JP3 pin 40). Both the encoder GND wire (inside the cable) and the shield will be connected to KMotion JP3 GNDs
> Â
> The shield at the other end of the encoder cable (near the encoder) can be left dis-connected.
> Â
> >>Â Also not sure what a terminating resistor is. Is it just a
normal resistor from radio shack?
> Â
> Yes, a simple 1/4 watt 200 ohm resistor. You will need two resistors per axis. As close as possible to KMotion connect one end of the resistor to the encoder A signal (ie JP3 pin 15), and the other end of the resistor to ground (JP3 pin 40). Similarly connect the other resistor, one end to the encoder B signal (ie JP3 pin 16), and the other to ground (JP3 pin 40).
> Â
> I assume by "float" you mean that the position drifts and doesn't repeat?
> Â
> No problem asking questions. Noise problems are very difficult to solve. I wish I had a simple solution for you.
> Â
> Regards
> TK
> Â
>
>
>
>
> From: Jared Tesmer <judrandom@...>
> To:
DynoMotion@yahoogroups.com> Sent: Sat, December 18, 2010 5:41:32 PM
> Subject: Re: [DynoMotion] Still strange things happening!
>
> Â
>
>
>
>
>
>
> Ok Tom I'm a little confused. I connected the machine to earth ground. Then I connected the motor sheilding to the machine frame next to each motor mount. I hope thats right. The encoders no longer float at idle. They still float while running programs. It gets worse the more axis that run at the same time. Exactly how do I connect the encoder sheilds to dc ground on the k-motion board? The encoders are connected to the 2 grounds on the jp3 and one of the two on the jp4. Would I connect the sheild to the encoder ground and both to the board together? Also not sure what a terminating resistor is. Is it just a normal resistor from radio shack? Also would I connect
one end to the encoder ground and the other to the ground used at the board? Kind of a buffer between the two? Probably driving you crazy by now. Thanks
> Â
> Â
> Jared
>
> --- On Tue, 12/14/10, Tom Kerekes <tk@...> wrote:
>
>
> From: Tom Kerekes <tk@...>
> Subject: Re: [DynoMotion] Still strange things happening!
> To:
DynoMotion@yahoogroups.com> Date: Tuesday, December 14, 2010, 3:32 AM
>
>
> Â
>
>
>
> Hi Jared,
> Â
> That sounds like noise. I doubt that it is a problem with the +5V power. Noise problems can be very complex. Single ended encoders are more sensitive to noise than differential encoder
signals so you need to take great care about shielding and grounding. The idea is to reduce radiated noise from the motors and motor wiring. And also shield any residual noise from getting into the encoder signals. Even If the motors are idle at zero current, the motors and all the motor wiring still have the +/- 55V switching on them at 30KHz. You might try connecting the encoder shield to KFLOP DC ground (not earth ground) at the KMotion Board end of the cable. The Motor shields should probably go to earth ground. Is the machine connected to earth ground directly?
> Â
> You might also try adding a terminating resistor of 250 ~ 150 ohms as close as possible to the KMotion encoder inputs to ground. Â
> Â
> There is also an encoder digital noise filter setting you can try. The default is to ignore glitches less than 7
clocks. The following program changes all the filters to 100 clocks (@16MHZ). Note that setting the filter to 100 will limit the encoder to 160,000 counts/sec max.
> Â
> #include "KMotionDef.h"
> main()
> {
> Â Â Â FPGA(ENC_NOISE_FILTER_ADD) = 100;
> }
>
> With regard to the heater - move south where you won't need it :}
> Â
> Regards
> TK
>
> Â
>
>
>
>
> From: judrandom <judrandom@...>
> To:
DynoMotion@yahoogroups.com> Sent: Mon, December 13, 2010 9:01:34 PM
> Subject: [DynoMotion] Still strange things happening!
>
> Â
>
> Hi again Tom
> I seem to be
having a similar problem as another user. The encoders hold count on the axis screen when nothing else is running. Here is what I observed. When motor power is plugged to the board the count on all three encoders slowly change moving upwards of a hundreds of counts and more over time. This is with no motor power enabled just plugged in.
> When I plug in the heater in the shop the count change is faster and more pronounced. The cables I used for the encoders are sheilded four conducter stranded wire. If I tie the metal shielding to the machine the encoders hold position with no motor power enabled. When I enable motor power with the sheilding connected to the machine the encoders start to count upwards dramaticaly. So when nothing else is running is the only time my encoders are reliable. This makes me wonder if the encoder power is the problem. Maybe it is dropping low as more power is being used? The encoders are powered by the 5V logic and
grounds from the 40 and 16 pin connectors. The one connected to the 16 pin power and ground fluctuate the most. Am I missing something? Would a dedicated 5V
> supply for each encoder help solve this? If so do I still use the ground from the headers or ground them in some other way? I hope this makes sense. Thanks
>
> Jared
>